/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.shanhesoft.java.common.core.vo.PageModel;
import com.shanhesoft.java.common.persistence.repository.BaseRepository;
import com.shanhesoft.java.modules.exam.domain.TVTrainComments;
import com.shanhesoft.java.modules.exam.domain.vo.TVTrainCommentsVo;

import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 实验评论Repository 实验评论
 * @author superadmin
 * @version 2021-01-26 15:25:22
 */
public interface TVTrainCommentsRepository extends BaseRepository<TVTrainComments> {

	public IPage<TVTrainCommentsVo> findCommentsByVid(PageModel pm, @Param(Constants.WRAPPER) QueryWrapper wrapper);

	List<TVTrainCommentsVo> findCommentsByParentId(String parentId);
}
